//
//  StacksBoot.swift
//  SwiftUIWidgetDemo
//
//  Created by alanzhangg on 2023/7/10.
//

import SwiftUI

struct StacksBoot: View {
    var body: some View {
        ZStack(alignment: .top){
            Rectangle()
                .fill(.yellow)
                .frame(width: 350, height: 500, alignment: .center)
            VStack(alignment: .leading, spacing: 30){
                Rectangle()
                    .fill(.red)
                    .frame(width: 150, height: 150)
                Rectangle()
                    .fill(.green)
                    .frame(width: 100, height: 100)
                HStack(alignment: .bottom) {
                    Rectangle()
                        .fill(.purple)
                    .frame(width: 50, height: 50)
                    
                    Rectangle()
                        .fill(.pink)
                    .frame(width: 75, height: 75)
                    
                    Rectangle()
                        .fill(.pink)
                    .frame(width: 25, height: 25)
                    
                }
            }
            .background(.white)
        }
        .background(.black)
    }
}

#Preview {
    StacksBoot()
}
